package cn.yiyuan.domain;
import io.swagger.annotations.ApiModelProperty;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * @user m
 * @project system_boog
 * @date 2023-10-10
 * @package cn.yiyuan.domain
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class Dep {
    private Long id;
    private String name;
    private String intro;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;
    private Emp manager;
    private Dep parent;
    private String path;
    private Integer state;
    private List<Dep> children;

}
